<me:UIHR20WEAVER x:Class="WPFExcelReport.THR20ITX"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                      xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                     x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIHR20WEAVER.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter  x:Key="nbv"/>
        <ucd:Divideby1000 x:Key="d1000"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIHR20WEAVER.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <WrapPanel  Grid.Column="0" Visibility="Collapsed">
            <TextBlock Margin="10,0,0,0" Text="{Binding Source={Localization:Translate Word=班次:}}" FontSize="22"/> 
            <WrapPanel>
                <SD:KB9318 Margin="5,0,0,0" LMS="1" KEY="{Binding SHIFT,ElementName=TV}" FontSize="20" Height="40" Width="80"/>
                <SD:KB9318 Margin="5,0,0,0" LMS="2" KEY="{Binding SHIFT,ElementName=TV}" FontSize="20" Height="40" Width="80"/>
            </WrapPanel>
        </WrapPanel>
        <WrapPanel Grid.Column="1" VerticalAlignment="Center">
            <Label Margin="0,0,0,0" Content="{Binding Source={Localization:Translate Word=挡车工: }}" FontSize="22"    />
            <ex:NumericBox Text="{Binding ART,ElementName=TV}" KeyUp="WVER_KeyUp" Width="80" FontSize="20" Margin="0,0,0,0"/> 
            <me:THR20 EXAUF="{Binding ART,ElementName=TV}" Visibility="{Binding IsUBT,ElementName=TV,Converter={StaticResource nbv}}"
                      dwHR="{Binding dwHR,ElementName=TV}" 
                      /> 
        </WrapPanel>
        <WrapPanel Grid.Column="2" HorizontalAlignment="Right">
            
            <Button Margin="30,0,0,0" Content="{Binding Source={Localization:Translate Word=产量}}" FontSize="22" Click="ShiftProdctionCommand"  />
            <ex:NumericBox Text="{Binding QTY,Converter={StaticResource d1000},ElementName=TV}" Maximum="999000" Width="80"
                               FontSize="22" DecimalPlaces="2" Margin="10,0,0,0"
                               TextAlignment="Center" />
            <Button Margin="10,0,0,0" Content="{Binding Source={Localization:Translate Word=保存}}" FontSize="22" Click="ShiftProdctionCommand"/>
        </WrapPanel>
    </Grid>
</me:UIHR20WEAVER>
